/*
*
* 空白页面
*
* */
import 'package:flutter/material.dart';
import '../../share/my_assets_image.dart';
import '../../share/my_color.dart';
import '../../share/size_fill.dart';

class EmptyWidget extends StatelessWidget {
  final String msg;
  EmptyWidget({this.msg ="暂无数据"});
  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      height: double.infinity,
      color: Colors.white,
      alignment: Alignment.center,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Image.asset(
            MyAssetsImages.setAssetsImagesPath("空.png"),
            width: SizeFill.setRx(120),
            height: SizeFill.setRx(121),
          ),
          SizedBox(height: SizeFill.setRx(20)),
          Text(
            msg,
            style: TextStyle(fontSize: SizeFill.setRx(15),color: MyColors.formHex("#999999FF")),
          ),
        ],
      ),
    );
  }
}
